package ${sysTableVo.packageName}.entity.bo;

import ${sysTableVo.packageName}.entity.po.${sysTableVo.bigClassName};
import ${sysTableVo.packageName}.entity.vo.${sysTableVo.bigClassName}Vo;
import io.github.linpeilie.annotations.AutoMapper;
import io.github.linpeilie.annotations.AutoMappers;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.io.Serializable;
#foreach ($import in $importList)
import ${import};
    #if($foreach.count == $importList.size())

    #end
#end
/**
 * ${sysTableVo.bigClassName}Bo:
 *
 * @author ${sysTableVo.functionAuthor}
 * @create ${datetime}
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Accessors(chain = true)
@AutoMappers({
    @AutoMapper(target = ${sysTableVo.bigClassName}.class, reverseConvertGenerate = false),
    @AutoMapper(target = ${sysTableVo.bigClassName}Vo.class, reverseConvertGenerate = false)
})
public class ${sysTableVo.bigClassName}Bo implements Serializable {

    private static final long serialVersionUID = 1L;

#foreach ($sysColumnVo in $sysColumnVoList)
    #if($sysColumnVo.isList)
        #set($parentheseIndex=$sysColumnVo.comment.indexOf("（"))
        #if($parentheseIndex != -1)
            #set($comment=$sysColumnVo.comment.substring(0, $parentheseIndex))
        #else
            #set($comment=$sysColumnVo.comment)
        #end
    /**
      * ${comment}
      */
    private $sysColumnVo.javaType $sysColumnVo.javaField;

    #end
#end
#if($sysTableVo.subTableId)
    /**
     * ${subSysTableVo.comment}列表
     */
    private List<${subSysTableVo.ClassName}Bo> ${subSysTableVo.className}BoList;

#end
}
